// (c) 2015 Teresa Holfeld
package com.holfeld.teresa.vocabtrainer.provider;


/**
 * Creates a VocablePair according to its own locales.
 * 
 * @author Teresa Holfeld, teresa.holfeld@googlemail.com
 *
 */
public class VocablePairFactory {

	private String mLocale1;
	private String mLocale2;

    /**
     * Creates a new VocablePairFactory with the given locales. The VocablePair instances that
     * this factory will create, will have the given locales.
     *
     * @param locale1 the first locale
     * @param locale2 the second locale
     */
	public VocablePairFactory(String locale1, String locale2) {
		mLocale1 = locale1;
		mLocale2 = locale2;
	}

    /**
     * Creates a new VocablePair with given words.
     *
     * @param vocable1 first word
     * @param vocable2 second word
     * @return the new VocablePair instance
     */
	public VocablePair createVocablePair(String vocable1, String vocable2) {
		return new VocablePair(mLocale1, mLocale2, vocable1, vocable2);
	}
}
